a=input("输入一行字符串：")
b=a.split(' ')
print(f'{len(b)}')
for i in b:
    print(f'{i}:{len(i)}')